// 移动的指向标
class movePoint extends egret.Sprite{
    public constructor(){
        super();
           this.addEventListener(egret.Event.ADDED_TO_STAGE,this.onAddEd,this);
    }
    private onAddEd(){
        this.init();
        this.once(egret.Event.REMOVED_FROM_STAGE,this.onRemove,this);
    }
    private onRemove(){
        egret.Tween.removeTweens(this.moveMc);
    }
    private moveMc:egret.Bitmap;
    private init(){
        this.moveMc = MyLibrary.createBitmapByName("movePoint_png");
        this.moveMc.anchorOffsetX = this.moveMc.width / 2;
        this.moveMc.anchorOffsetY = this.moveMc.height;
        this.moveMc.x = 0;
        this.moveMc.y = 0;
        this.addChild(this.moveMc);
        egret.Tween.get(this.moveMc,{"loop":true}).to({y:-25},800).to({y:0},800);
    }
}